package com.kaigejava.springwebsocket.utils;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.websocket.Session;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Service("chatUserUtil")
public class ChatUserUtil {
    //用于保存HttpSession与WebSocketSession的映射关系
    public static Map<String, Session> userSocketSessionMap ;
    static {
        userSocketSessionMap = new ConcurrentHashMap<String, Session>();
    }
}
